Deductions & credits

So was the prior tax on line 22 about $7322?  And your withholding $5,540?  Leaving you a tax due of $1,782.  Then the EV credit wiped out the 7322 tax giving 0 tax.  And you get back all the withholding 5540.