Maybe your problem is that you are trying to apply advanced mathmatics.
Instead, picture your rail shape in your hands, then run your hands over the rails while holding the blank over your head, and slide your hands towards the rails.
If you can’t picture that, lay the board on it’s belly, on a stand, and run your hands along the rail. Picture the shape you want to achieve.