Novel algorithms for calculating proportion of days covered (PDC) in real-world datasets