Based on the result the number itself should have a specific color. When the number is negative, the boolean should give them a classname negative so the number will be red else classname positive which is a green color.
.negative {
color: red;
}
.positive {
color: green;
}
<tr>
<td>Totale Inkomsten</td>
<td ng-model="totalcost">{{ totalCost() }}</td>
<td>Totale Uitgaven</td>
<td ng-model="totalexpense">{{ totalExpense() }}</td>
</tr>
<h2 ng-class="totalcost < totalexpense? 'negative': 'positve'">{{ totalCost() - totalExpense() }} </h2>