Pennsylvania does not have a statute governing late fees for residential real estate, so you will need to start by reading the late fee provision of your lease. Absent something in the lease or law that prevents your landlord from doing so, the landlord can apply your subsequent payments to your late fees before applying the balance to your rent.