Agree the deposit before the work starts
Put the deposit, when it is due and whether it is refundable in your quote or contract, then invoice it as its own invoice. Our guide to how a deposit invoice works walks through the wording, and invoice terms and conditions has clauses to adapt.
This calculator does the arithmetic only. It does not tell you how tax applies to a deposit where you or your client are.