You're already calculating this above on line 158. Possible to only do this once?