What you've written above is difficult to understand. You have a box but you've only given it 2 dimensions. You have an $x$ in your formula but you don't say what it refers to. Can you reword things a bit more carefully. A picture would help a lot as well.