Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #68: Elapsed Classroom Times

RobertoEstrada
8 - Asteroid

Here is my solution, it is a little bit different than the proposed one but I got the same results.

nivi_s
8 - Asteroid

Challenge #68 solved!

 

clipboard_image_0.png

anishanayak
7 - Meteor

Solution attached

Inactive User
Not applicable

clipboard_image_0.png

Deevi
8 - Asteroid

Great challenge!

 

Spoiler
68 pic.png
CaraI
Alteryx
Alteryx

I thought about doing it all in just a formula tool, but why waste all of the dev effort put into the Date Time Parse?

 

Spoiler
68_challenge.jpg

 

Laszlo_D
8 - Asteroid

clipboard_image_0.png

Bluemoon
8 - Asteroid

Lots of if!

Spoiler
68.png
SueDonim
8 - Asteroid

I suspect my answer is a bit too brute force (due to my not yet knowing all of the datetime functions, but I got there.  Thanks to Marquee Crew's Expect Equal tool, I found some problems along the way.  And in fact, there are some negative elapsed times in the solution set (ahem!)

 

What I learned:

- Don't trust the first few records as proving the accuracy of your result

- Expect Equal is pretty awesome

- There should be universal time standards (enforceable by a long sentence at hard labour) so this sort of problem doesn't arise ever again

Spoiler
Process:
- Add leading 0 to time string if needed
- Convert start and end times to datetime format
- Calculate difference between start and end time
- Remove additional 12 hours for afternoon/evening times
- Add leading 0 to time string if needed
MySolution.PNG
SueDonim
8 - Asteroid

Your solution is so much simpler than mine - good lessons - thanks