"I will cry when the time comes." is identical in meaning to the given translation.
Yes meaning is the same, but the sentence is according to the Duo rules different.