tests: improve calculation in hwtimer_wait

Kudos to @Kijewski
It's just an estimate anyways.