change time calculation to not require bc

bc isn't on all devstack-gate nodes, do math in bash instead of
using bc.

Change-Id: I8fd330ee9b1fe7db33a64488fc17e24bdf291357