I just found the PAUSEUS command, so it should be easy enough to work out the math now

Thanks