Turning a time back into a tempo
A duration on its own does not identify a tempo. 375 ms is a quarter note at 160 BPM, a dotted eighth at 120 BPM, and an eighth note at 80 BPM. All three are true, and which one you want depends entirely on what that duration represents musically.
That is why the note value is an input rather than an assumption. Once you say which subdivision the time stands for, the arithmetic is direct:
where is how many quarter notes the chosen value spans. A 500 ms duration read as a quarter note gives 120 BPM. The same 500 ms read as a dotted eighth points at 180 BPM instead.
The most common reason to run this backwards is a preset or a reference track. A delay patch that sounds right at 428 ms was probably built at a specific tempo, and knowing which one tells you whether it will translate to your session. A reference mix whose delay you can hear and measure gives you its tempo without needing the project file.
The tool also shows the resulting quarter-note length, so you can sanity-check the answer against something familiar. If the quarter note comes out at 500 ms you know immediately that the tempo is 120 BPM, because that pair is worth memorising.