You fixed two things:

1) the return type of the method and
2) what it returns.

The method couldn't return 'dt' because it only existed in another method; 'deliverTime' can be returned because:...