How is the revenue calculated?