Ok, I think I'm tracking in on what you're trying to do; well sort of.
Let me start off by saying, storing calculated values in a table is a big "NO NO!" :) Calculations should be done at the time of render, meaning, the calculation is done exactly when it needs to be displayed.
Ok, now that...