bash does not do floating point math by itself. Since you have to convert the output of time into something you can do math on, this whole thing scream "use
perl" to me.
As a hint, though, look at your man page for time. On Linux you can do "time -p" and it will output in a decimal value instead of tacking on the minute and second units.