In Victoria, the requirement for the property to be kept in a reasonably clean condition is specified under
s63 (or, s188 in QLD).
From there, we can see under
s419 that the landlord may apply for bond moneys to be withheld and paid to the landlord, if that condition is not met at the conclusion of the lease.
(In Qld, s125 allows the landlord to apply for bond moneys, with s136 requiring notice to be given to the tenant to allow for conflict resolution before payment).
So far, so good.
Now,
s39 (or s97 in QLD) states that rent accrues on a daily basis and is payable or refundable accordingly.
s219 and
s235 (for Victoria, depending on which party issued notice) allow for a lease to be terminated on a specific date. Taken with s39, above, means that rent is payable or refundable based only until that specified date.
(Termination of leases for QLD is dealt with by s277, for either party giving notice, and s97 per above would also apply equally).
So! We can see that the Act allows for a lease to be terminated by either party. That termination takes affect on a specified date so many days in advance, depending on the type of notice given. The landlord thus has no right to collect rent for use of property beyond that date; the tenant has no right to use the property for their own means beyond that date, either. A landlord, then, would be liable to refund rent if the tenant has paid beyond the termination date. That settles that side of the argument.
Now if the property is not in a reasonably clean condition at that point, the landlord may then request the appropriate funds to be withheld from the bond to cover the cost of doing so themselves. There is no part of the Act (for either state), I believe, which provides a right for the tenants to return to the property and clean it themselves afterwards.
However, legislation is translated in terms of case law, and precedent by many tribunal hearings has taught property managers to allow the tenants to come back and clean the property after the lease has ended. It's usually faster and more effective than fighting through both the tribunal and the bond authority, even if there is no right for the landlord to collect rent for that period.