Make a test piece with 7-10mm cord.
Learn to tie a double fishermans. Make a loop that is as long as the distance between your junk and the tip of your hand above your head.
Learn to tie a klemheist / prusik. Set yourself up for footlocking. The loop should be long enough to have a few (~2) inches of slack when you are standing up in a lock with your arms raised to push the knot up. Not too much slack - you need to be able to easily reach it if you need to descend.
If it's too long, make it shorter. If it's too short, make it longer.