Please follow https://www.irs.gov/newsroom/understanding-the-child-and-dependent-care-credit.