added caluculating adherence notifacation