Child and dependent care expenses must be work-related to qualify for the credit. Expenses are considered work-related only if both of the following are true.
They allow you (and your spouse if filing jointly) to work or look for work.
They are for a qualifying person's care.
This information is found in Publication 503, Child and Dependent Care Expenses.