using arithmetic to calculate mobile card height