Calculating Amount of hours Based on time Inserted

I want to create an APP which calculates the number of hours based on time
being put. Say the first time was 12:00 and the closing time is 14:00 it
should calculate that 2 hours spent. I want to create an APP for car
parking but it should calculate the amount based on hours a car has parked.

Hello,

This page
https://confluence.dimagi.com/display/commcarepublic/Calculations+with+Dates+and+Times
should
explain how to build such a calculation.

Cheers,
Will

··· On Mon, Sep 25, 2017 at 8:03 AM, Ralph kawatira wrote:

I want to create an APP which calculates the number of hours based on time
being put. Say the first time was 12:00 and the closing time is 14:00 it
should calculate that 2 hours spent. I want to create an APP for car
parking but it should calculate the amount based on hours a car has parked.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks a lot for your help

··· On Mon, 25 Sep 2017 at 19:05 William Pride wrote:

Hello,

This page
https://confluence.dimagi.com/display/commcarepublic/Calculations+with+Dates+and+Times should
explain how to build such a calculation.

Cheers,
Will

On Mon, Sep 25, 2017 at 8:03 AM, Ralph kawatira rkfraaz@gmail.com wrote:

I want to create an APP which calculates the number of hours based on
time being put. Say the first time was 12:00 and the closing time is 14:00
it should calculate that 2 hours spent. I want to create an APP for car
parking but it should calculate the amount based on hours a car has parked.

You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/JL7eE0OU_xc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


With Kind Regards

Ralph Kawatira
ICT Officer
Catholic Development Commission Chikwawa Diocese
UBALE PROGRAM
+265 999 124 096 / +265 882 477 997
Skype:ralph89k

Hi,

I have a similar question, but the guidelines in the link are not exactly
what I need as most of it uses the now() function to calculate.

I would like collect data on hours worked per day, so responses would be in
the form of Day1 9am-3pm, Day2 5-10pm.

How can I calculate the total number of hours worked per day?

Thanks!

··· On Monday, September 25, 2017 at 7:08:56 PM UTC+2, Ralph kawatira wrote: > > Thanks a lot for your help > > On Mon, 25 Sep 2017 at 19:05 William Pride <wpr...@dimagi.com > wrote: > >> Hello, >> >> This page >> should >> explain how to build such a calculation. >> >> Cheers, >> Will >> >> On Mon, Sep 25, 2017 at 8:03 AM, Ralph kawatira <rkf...@gmail.com > wrote: >> >>> I want to create an APP which calculates the number of hours based on >>> time being put. Say the first time was 12:00 and the closing time is 14:00 >>> it should calculate that 2 hours spent. I want to create an APP for car >>> parking but it should calculate the amount based on hours a car has parked. >>> >> -- >>> You received this message because you are subscribed to the Google >>> Groups "commcare-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to commcare-user...@googlegroups.com . >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "commcare-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/commcare-users/JL7eE0OU_xc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > -- > *With Kind Regards* > > Ralph Kawatira > ICT Officer > Catholic Development Commission Chikwawa Diocese > UBALE PROGRAM > +265 999 124 096 / +265 882 477 997 > Skype:ralph89k >

Hi @Lameez_Alexander

Did you find a solution to this please? I am working on something similar.