added calc to add up total rev and total opex