Extract total amount calculation from helper
Remove dead code from application helper
Change float columns to decimal