Fixed rake file to calculate package amounts accurately