cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Substracting pause off total time

I have the following formula;

DateDiff(Time(
Value(DropBeginUur.Selected.Value);
Value(DropBeginMinuten.Selected.Value);
0);Time(
Value(DropEindUur.Selected.Value);
Value(DropEindMinuten.Selected.Value);
0);Minutes) / 60,0

 

This calculates the time between 4 dropdowns. Now I also have another dropdown that is the pause. If they select 30, it needs to remove 30 minutes from the formula above. (The code above outputs it into hours. How do I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Fixed it myself;

 

Sum(
DateDiff(Time(
Value(DropBeginUur.Selected.Value);
Value(DropBeginMinuten.Selected.Value);
0);Time(
Value(DropEindUur.Selected.Value);
Value(DropEindMinuten.Selected.Value);
0);Minutes) / 60,0; - DropPauze.Selected.Value / 60)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Fixed it myself;

 

Sum(
DateDiff(Time(
Value(DropBeginUur.Selected.Value);
Value(DropBeginMinuten.Selected.Value);
0);Time(
Value(DropEindUur.Selected.Value);
Value(DropEindMinuten.Selected.Value);
0);Minutes) / 60,0; - DropPauze.Selected.Value / 60)
Anu_Gupta
Community Support
Community Support

Thanks @Anonymous for your update. 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,433)