Dynamically calculates bmi and year to date.