Sam has 844 dollars to spend on milk cartons, each of which costs 7 dollars. How much money would he have left if he buys the most number of cartons possible?