Child Support

How is child support determined in a divorce case?