Even if you can deal with the lack of legroom, privacy, and decent meal options on airplanes, your patience may start to wear thin when it comes time to pee. Being stuck waiting in long bathroom lines on planes may feel like one of life's unavoidable annoyances, but according to WIRED, there's a way to make the experience more tolerable. The secret involves urinals and a bit of math.

At last month's Crystal Cabin Awards, a competition that recognizes innovation in aircraft interiors, Zodiac Aerospace introduced the Durinal, a two-urinal plane bathroom that takes the place of one toilet. Replacing a bathroom that serves all passengers with one that's made for only half the population may seem like a quick way to make the long-line problem worse, but there's some logic behind the proposed solution.

As Wouter Rogiest, a mathematician at Ghent University in Belgium, tells WIRED, gender-neutral bathroom lines are shortest when men have the option to head straight for a urinal. That's because it's quicker to use a urinal than a stall, and when men opt for the urinal, it frees up stalls for women. When he drew up an equation looking at hypothetical bathroom wait times at a concert, he found that a ratio of 14 toilets to eight urinals produced the most desirable wait times: one minute, 27 seconds for women and slightly under a minute for men. On a commercial plane, this ratio would come out to one or two Durinals per six conventional bathrooms.

Rogiest's concert equation isn't a perfect stand-in for airplane scenarios, so a more specific study would be needed before airlines could consider installing urinals. Unfortunately, if bathrooms with urinals do show up on airplanes, you can expect the spaces to be just as tight as they are now.

[h/t WIRED]