Calculated value randomly displaying incorrectly.