Calculate order total at proper moment