Previously re: the law of sines
However, if you aren’t changing the angle of two adjacent sides, it’s much simpler. You can just alter opposite sides of your box to be non-rectangular, and angle the fingers with it.
Something like this:
I rushed it a bit (accidentally scaled the entire canted side in both x and y, so the finger slots are too deep) but the concept is sound.