Calculating Invoice Totals for custom field

I didn’t see a “paid” field for invoices, so I’ve created it in the Studio. I have it inserted for invoices, but now I need to figure out how to make it calculate.

So, if the invoice total is for $100 & paid is $100 then the Grand Total would be $0.

Where to I go to make Grand Total subtract Paid in it’s calculation?