It's probably more trouble than it's worth, but you may be able to pull this out into a method so you can just use @cart_total without having to divide in the view.

Happens again on line 20