Child and Dependent care credit if one of two child attended daycare

The total daycare expense the family spent in 2022 was $6,000. The daycare expense was for one child. The other child did not attend daycare. Does the family qualify for the $3,000 or $6,000 expense limit? Please explain.