TSU-598 border-bottom was returning 'medium' and consequently parseInt was returning NaN making other sums invalid.