In reality
Until mother is mentally instable and has done really heinous crime, the custody is always given to her.
I have myself seen a case the mother was in prison and her 5 yr old kid used to be in creche of Jail even when her husband and his family were outside.
The Mandoli Jail in Delhi, when we went to creche there, they said they have even send the kids to UK and outside and bear their education costs.
Finances never ever comes in play while custody.
Father has to pay for the kid and mother has the custody and father gets visiting rights.
Agar fraud degree nahi hain and kuch kiya hain akshu ne 5 saalo mein so should use it.
Otherwise father name wala kaand kiya hain usne still it can't make her lose the custody of her kid.
Ya bilkul faltu lawyer hire kiya hain isne ya Judge ko paise mile hain.