Yesh indeed,

To simplify and automate this process:

[RB-help]
To use calculator, first select the desired number of seconds of music. Next, choose the number of bars of music in the song.
The tempo field will the automatically change to show the exact tempo needed for the desired song length.

NOTE: The Number of Bars are assumed to all have the same time signature as the first time signature in the current song.

NOTE: You could adjust Tempo to calculate Number of Bars, but it will not always result in whole number of bars.

Thank You For Your Time
B