Its not that simple. Your best bet is to put a known length axle in, look at how far off it is and get an axle that much shorter/longer.
The simple way to check is to put the bike together, stand behind the bike and look down the chain. You can see it go left or right and estimate how much it's off.
BTW, axles do have an overall length but that length is added up from the 3 sections, left, center and right. 3 piece axles come in a thousand different combinations of those 3 lengths. Frames with wider bb shells (72mm) typically need a wider center section axle. 68mm wide frames use axles withe bearings set closer together. Just knowing the overall length doesn't tell us how much sticks out the right side.
Old style triples often used the longest axles, one that is longer on the right side only. For a while crank manufacturers redesigned the triple cranks to use rather short axles, perhaps to reduce flex while pedaling hard. Now they are all over the place. Each brand and model of crank can take a different axle length.