Thank you for reaching out. The retainage amount would be determined off your contract with the contractor. Typically it is 3,5 or 10% of the contract and/or billed amount. Do you have a contract?
Here is a great webinar by Thea Dudley talking about Retainage that might help you in this situation. Understanding Retainage in Construction