Calculating Amount of hours Based on time Inserted

13 views
Skip to first unread message

Ralph kawatira

unread,
Sep 25, 2017, 8:03:23 AM9/25/17
to commcare-users
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.

William Pride

unread,
Sep 25, 2017, 1:05:07 PM9/25/17
to commcare-users
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ralph Kawatira

unread,
Sep 25, 2017, 1:08:56 PM9/25/17
to commcar...@googlegroups.com
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

lameez

unread,
Oct 4, 2017, 5:11:10 PM10/4/17
to commcare-users
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!
Reply all
Reply to author
Forward
0 new messages