The good faith deposit will usually be converted into the security deposit or part of the security deposit or in some cases converted into advance rental.
The remaining security deposit is usually paid upon signing of the tenancy agreement.
As for the security deposit, it is usually for the purpose of security throughout the rental period in case any items are damaged or if the premise is not handed over back to the landlord in the same or satisfactory condition. If the condition is perfect and there is no breach of any terms in the contract, the security deposit will be refunded back to the tenant usually within a few weeks without interest. The return of the security deposit will usually also be mentioned in the tenancy agreement.
In order to avoid forfeiture of any part of the security deposit, it is advisable to plan ahead for reinstatement or prepare for handover at least a few weeks before the expiry of the lease so that if there is anything that needs to be reinstated or rectified, there will still be enough time for you to do so.