If the calculation is not overly complex and localized, go ahead and calculate it on the fly. Now where to do the calculation depends on your architecture of your application. You could do it in ASP, the middle-tier business object, maybe even a stored procedure.
-Mike