Day Calculation (Incomplete)

Unsuitable datepicker event (onchange not function)