Gender costs is dependant on the ratio split between male and female. If the ratio split is 50% Male 50% Female, like whismur it will cost you 5k. While if the split is 87.5% Male and 12.5% Female (like cyndaquil) it will cost you 21k as Eric has suggested to get a better idea of this checking gender ratios on bulbapedia is your best bet ^^