There's a maths equation that can tell you the best age to get married.

When it comes to finding love and settling down, we naturally assume it’ll be the powers above that determine who we will be with and when we will be with them.

Most believe we don’t have much to do with the process, for it’s one that’s out of our hands and belongs to something far greater than our own desires.

But what if maths comes into play? And what if an algorithm can determine exactly when you should be settling down, and how you should be going about your dating?

Mathematician and lecturer Hannah Fry thinks she can help out. In her TED Talk in 2014, she says “love, as with most of life, is full of patterns and mathematics is, ultimately, all about the study of patterns.”

She talks about the mathematical trick that can maximise your chances of finding lasting love. It’s called the 37 percent rule and it can sound a liiiiittle bit complicated, but stay with me.

If we imagine you’re choosing a future love from 100 potential suitors on, say, Tinder, the idea is that you swipe left for the first 37 people. No matter how pretty they may be, or smart they may seem, swipe left. They’re out. You won’t end up with them.

Country music star Beccy Cole on how long it took her to find love. Post continues after audio.

From purely a mathematics perspective, the idea is that if you shoot too early, you miss a great match later on. And if you hold out, hoping the next person, and the next person and the next person will be better than the last, you’ll miss out on the good ones in the middle.

If it sounds a bit funky, think of it this way. You play around in the early dates. Learn things about yourself, learn things about other people and learn things about the nature of relationships. And then after a little while, you’ll reject them. That way, later, when you understand how people function and the kind of person you are, you can settle down with the “37th” person that comes along.

Same thing goes when you’re looking for the best person to hire for a job. At the 37 per cent mark of any screening process, you’re in a good place to pick the best of the bunch.

Journalist Brian Christian and cognitive scientist Tom Griffiths, coauthors of “Algorithms to Live By: The Computer Science of Human Decisions,” touch on how the 37 percent rule can be used in their latest book.

Source: iStock.

They assume you're hiring for a job, and you've got three potential applicants. You can only screen them once each. That means if you reject the first one, and (whoopsie!) they turned out to be the best person for the job, you can't backflip and give them the job. Conceivably, they went on to find a new job.

So how do you hire the best person? Christian and Griffiths say the best way to know who to hire in this scenario is to base your decision off the second applicant. If they're better than the first, you hire them. If they're not, you wait.

Let's apply this to marriage. When do you start seriously looking for your husband or wife?

Well, let's assume you're looking for love between the ages of 18-40. For maths hounds, you'd know that's a 22-year window. 37 percent into that 22 window leaves you at about 26.

So, at 26 you should be seriously considering your husband or wife. The assumption is you sort through the duds in your earlier years, and by 26, you're really ready to settle down.

It's not too far-removed from other research, too. In July 2015, the University of Utah sociologist Nicholas Wolfinger discovered that the best ages to get married in order to avoid divorce are between 28 and 32.

Assuming it takes a year or three to settle on one, you'd find yourself marrying in exactly that bracket.