web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to sum time in h:m...
Power Apps
Answered

how to sum time in h:m time format

(0) ShareShare
ReportReport
Posted on by 16

Hi all, 

 

Im new to powerapps, and making a simple app to calculate time.

looking for help to calculate time (0:15 + 0:4 = 0:21)

 

Shikaka_0-1678355229217.png

 

Thanks

Categories:
  • Shikaka Profile Picture
    16 on at

    Correction, sum **hour and minutes**

  • WarrenBelz Profile Picture
    156,725 Most Valuable Professional on at

    Hi @Shikaka ,

    Apart from 15 + 4 equalling 19, you would do this

    With(
     {
     wTime: 
     Value(
     Last(
     Split(
     YourTime1,
     ":"
     )
     ).Value
     ) + 
     Value(
     Last(
     Split(
     YourTime2,
     ":"
     )
     ).Value
     )
     },
     RoundDown(
     wTime / 60,
     0
     ) & ":" & 
     Mod(
     wTime,
     60
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Shikaka Profile Picture
    16 on at

    Thank you so much @WarrenBelz 

     

    Partially it worked, but it does not reflect the hours for example:

     

    1:5 + 1:25 = shows 0:30

    which im looking for 2:30

     

    Thanks

  • Verified answer
    WarrenBelz Profile Picture
    156,725 Most Valuable Professional on at

    @Shikaka ,

    You did not mention needing hours in the equation - both your examples were minutes only (hence my response)

    With(
     {
     wMinutes: 
     Value(
     Last(
     Split(
     YourTime1.Text,
     ":"
     )
     ).Value
     ) + 
     Value(
     Last(
     Split(
     YourTime2.Text,
     ":"
     )
     ).Value
     ),
     wHours: 
     Value(
     First(
     Split(
     YourTime1.Text,
     ":"
     )
     ).Value
     ) + 
     Value(
     First(
     Split(
     YourTime2.Text,
     ":"
     )
     ).Value
     )
     },
     wHours + 
     RoundDown(
     wMinutes / 60,
     0
     ) & ":" & 
     Mod(
     wMinutes,
     60
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Shikaka Profile Picture
    16 on at

    @WarrenBelz 

     

    Thank you so much, it worked 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard