So far you’re looking at the child as a total negative: so much in lost wages, so much in expenses. Children are not entirely downsides, of course, so separate the pregnancy costs from the costs/benefits of having the child in your life.
So before having sex, the couple sign an agreement that both will be responsible for half of whatever uncompensated costs the women incurs due to pregnancy through delivery. No money changes hands at all at this point, hopefully removing the ‘prostitution’ taint. If no pregnancy happens, fine and dandy. (Okay she pays for her pills, he pays for his condoms, so the sex isn’t totally ‘free.’)
If a pregnancy happens then both will have to shell out money.
If she has an uncomplicated pregnancy with good health insurance each might end up paying half the copay & deductible on her health care plus half of some time lost from work for doctors visits and, say, up to two weeks off to recover from giving birth.
If she has one of those pregnancies where she ends up flat on her back for four months, well, the cost goes way up.
This is something for the guy to consider before the sex. He can question girl closely on her contraceptive practices, her general health, whatever, and decide for himself whether he wants the sex enough to risk the financial blow if pregnancy results.
Then we turn to the baby.
Either parent can CHOOSE to adopt the child, formally accepting the complete responsibility for covering its expenses.
If both parents want the child in their life, well, they can adopt jointly and work out child support and custody and visitation just as if they were a divorcing couple with a child.
Or they could marry and adopt as a couple.
And if neither of them wants to take responsibility for the child, then it can be offered for adoption. There are lots of people who are dying for the chance of adopting a baby.
How’s that for a ‘solution’?