Hi everyone,
I´m new here and I hope someone can help me. English is not my native language but I have seen a question similar to mine that was posted in 2010. So, I'll give it a try, and if I make mistakes please forgive me ray:
I am trying to generate a travel calculating formula for people that works in Production, but I don't know how to make it.
I have the next components:
B7: The day the person starts the journey.
B9: The hour the person starts the journey.
E7: The day the person finishes the journey.
E9: The hour the person finishes the journey.
I need to calculate the number of days between two dates, taking into account the next premises:
1- If the person starts the journey at 6.00 p.m or later and returns the next day at 12 pm or before, the company will give you a full day of per diem.
2- If the person starts the journey at 6.00 p.m or later and returns the next day after 12 pm, the company will give you a full and a half day of per diem.
3- If the person starts the journey before 6.00 p.m and returns the next day at 12 pm or before, the company will give you a full and a half day of per diem.
4- If the person starts the journey before 6.00 p.m and returns the next day after 12 pm, the company will give you two days of per diem.
I hope I'm explaining this ok. Any ideas?
Thanks for looking at this.
Marime.
I´m new here and I hope someone can help me. English is not my native language but I have seen a question similar to mine that was posted in 2010. So, I'll give it a try, and if I make mistakes please forgive me ray:
I am trying to generate a travel calculating formula for people that works in Production, but I don't know how to make it.
I have the next components:
B7: The day the person starts the journey.
B9: The hour the person starts the journey.
E7: The day the person finishes the journey.
E9: The hour the person finishes the journey.
I need to calculate the number of days between two dates, taking into account the next premises:
1- If the person starts the journey at 6.00 p.m or later and returns the next day at 12 pm or before, the company will give you a full day of per diem.
2- If the person starts the journey at 6.00 p.m or later and returns the next day after 12 pm, the company will give you a full and a half day of per diem.
3- If the person starts the journey before 6.00 p.m and returns the next day at 12 pm or before, the company will give you a full and a half day of per diem.
4- If the person starts the journey before 6.00 p.m and returns the next day after 12 pm, the company will give you two days of per diem.
I hope I'm explaining this ok. Any ideas?
Thanks for looking at this.
Marime.