Think about how you would make that in the shop. You’d run the cutter off the end. At the point you’re at now, Hit Ctrl with Push/Pull and run the round over profile off the end a ways. Then select all of the geometry and use Intersect Faces>With Selection followed by deleting the waste.
If I were drawing that, though, I would do the profile along the length of the rail before coping the ends.