How is custody determined?

The Married Persons Equality Act (1 of 1996) states that both parents are joint custodians and equal guardians. Custody can be with one parent while the other parent enjoys visitation in the alternative parties can share custody. Custody is determined as per the court judgment whether made by agreement between the parties or determined