How many 16-oz cans fit in a 2.5 cu ft fridge? In a 3.1?

I get around 100 to 110 in a 2.5cu fridge, with a mathematical calculation that takes into account the fact that the shape of a beer can is a cylinder, and that it wastes space compared to a square shape.

However, it doesn’t take into account the fact that you may have to waste space if your fridge’s width isn’t exactly a multiple of your can’s width (same for the height).

I get around 126 of the 3,1 cu ft fridge, with the same calculus.