Pure-PHP implementation of function that can compute next launch timestamp. You can use it as you wish