Added calculatio to find those patients who are omn medication for a time period