applied Replace Temps with Query for totalCharge