Why couldn’t you just do these calculations on the page, rather than saving back to the database?