revenue calculation