How to get the ratio of start and enddate. [Closed]


can anyone help me to get the ratio of startdate, enddate.

startdate = 2016-02-14 20:10:10
enddate = 2016-02-14 23:59:59
c= 44:10:09 (Total time of 2016-02-14)

r = (ratio(23:59:59) - ratio(20:10:10)) /44:10:09;
NOte: convert 20:10:10, 23:59:59 by minutes before taking the ratio. 44:10:09 also convert it by minutes while taking r value

Thanks in advance, AAA

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!