CALCULATING REVENUE