Chalk (something) up to (something)

To recognize something as the cause of something else.

We were able to chalk our success up to our new boat.