for calculating revenue