Arithmetic errors on some field calculations

@lubos this fix is causing problems with currency exchange rates see Exchange rate shown incorrect due to round up. Please help as this is problematic.