Ok I know this should be easy but it's been a few years since my physics lessons at college and I'm stumped. I work in packaging. I'm working on a tool that will tell me if a box will fall over when it is subjected to an edge drop test. That means that a block is placed under one edge of a box / pallet and then yanked out after which the box falls to a vertical position. If the center of gravity is in the middle of the box, there's no way it can topple over after hitting the floor, otherwise it would already have toppled when placing the block for the edge drop test. (Right?) But if the center of gravity is close to the lifted edge of the box the situation is different. My common sense tells me that there's a risk of toppling, but I'm stumped as to how to calculate it. See picture for what I have so far. Any pointers?