As far as I know there is no time limit for a deallocated VM in Azure.
Just keep in mind: Even if there are no costs for Azure compute if the VM is deallocated there are costs for the storage used by a VM (disks). The storage costs are independent of the status of the VM (started/deallocated).
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten