add total calu auto logic
minor update
set the total to 2 decimal