Custom Field Renderer - To do Simple Calculations

Moshe - are you simply trying to display some calculation to the user in the interface?  Or are you trying to actually create a field and store values for that field back into the database?   The first one is pretty trivial (J explains it pretty well above)  the second may take some further doing.