I have a custom object called Log.
It has two fields : StartTime__c and Endtime__c.
R1.StartTime__c = '05:58 am';
R1.EndTime__c = '11:54 pm';
The number of hours between StartTime__c and EndTime__c is 17.87
Is there any way I can derive this number value via code or is it possible to build a formula field that can come up with this ?