Hit the nail on the head

To make a correct guess or analysis.

The accountant hit the nail on the head when he wrote the report about the bank`s problems.