what are the different methods of calculating revenue of a company?