Earnest money check, down payment and closing costs: When are they due?

Buying a home means paying certain costs at specified times during the process. The earnest money check is one of the first things you’ll pay. But if things don’t work out, you usually get the money back.