Progress Billing retention calculation method

Right now our system calculates retention only on the pre-tax amount. Is there a way to tell it to calculate retention on the entire invoice amount, including tax?