Hi,
"I want the formula to be calculated in crystal and then reflect in SQL"
Do you want to send the value from Crystal to SQL?
If Yes, then it is not possible with Crystal. because Crystal is a reporting tool, which is used to fetch the data from database.
and
={Invoice_generated.AmountPaid}- T
what is T here, did you decalre the variable(T) in other formulas in crystal?