BPM and Loop Length Calculator

For the musicians out there, here's a macro that I use once in a while that was initially something I built with my basic HTML and JavaScript knowledge, but converted it to a simple KM macro.
I believe it's pretty self explanatory, but let me know if you find any issues:

BPM & Loop Calculator Macro (v11.0.2)

BPM & Loop Calculator.kmmacros (22 KB)

Keyboard Maestro Export

Original post when I was trying to convert my HTML + JS files into a dynamic KM macro (without any success so far):

Or see this: