<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Ability to do calculations with minutes/seconds?

Replies: 1

Hi there! Is there a way to do calculations with this plugin that involve minutes and seconds?

I’m trying to add some running-related calculators to my site, and am struggling with how to do that since most info is presented in min/sec.

For example, I want someone to enter the time it took to run 5 miles (lets say 46 min 40 sec), and get their average pace per mile. I’m struggling with how to do this though so the final result displays a minute/second result of 9:20, rather than the result of 9.3333 minutes.

So far I have a workaround, but it requires the user taking the end of that decimal (0.3333) and entering it themselves in another field, which then the calculator can finish the conversion of that to seconds. But the extra step is a bit tedious for the user, so trying to figure out if there’s a way I can do this myself.

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer