Calculations for Advertisements