Fixed calorie calculation when changing calorie formula by applying template to activity