Put two and two together

To understand or figure something out after learning all the facts.

I put two and two together and realized why my boss was absent last month.