updated adv calc