cancel
Showing results for
Did you mean:
Helper II

## Calculate Duration between two times

Hello all powerapps users,

I have four dropdowns, which store hour and minutes, two dropdown for start time and two dropdown for end time.

I want to calculate time duration between two times.

please provide how can i calculate time difference.

Note: Time Calculate for only single date.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II

## Re: Calculate Duration between two times

Hi,

I use this formula, using 24 hour dropdowns...

Took me a while to sort when I did but works well.

`Text(((HourValue12_2.Selected.Value*60+MinuteValue12_2.Selected.Value)-( HourValue11_2.Selected.Value*60+MinuteValue11_2.Selected.Value))/60,"[\$-en-US]###.00")`

Hope this helps....

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

Highlighted
Resolver II

## Re: Calculate Duration between two times

Hi,

I use this formula, using 24 hour dropdowns...

Took me a while to sort when I did but works well.

`Text(((HourValue12_2.Selected.Value*60+MinuteValue12_2.Selected.Value)-( HourValue11_2.Selected.Value*60+MinuteValue11_2.Selected.Value))/60,"[\$-en-US]###.00")`

Hope this helps....

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

#### Super Users Coming in August

We are excited for the next Super User season.

#### Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

#### Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,512)