How much? Enough to reach. The best length is that gives the gentlest curves, with no reverse curves, and allows full swing of the moving parts.
Most folks do OK with the handlebar to frame section, but it's very common for folks to cut the frame to swing arm loop on suspension too short, causing problems when the suspension is compressed.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.