Move the calculation for when the phase will end to be before the worker is called.

This is the best pull request EVER.
Merge pull request #375 from FREEDM-DGI/Issue373

Compute remaining time before call to first worker.