Function question "YES"

Then I have encountered a problem …
This may be simple, but I can't understand it.

In a spreadsheet in Google Sheets, I need a cell to complete a total when a certain cell contains another variable.

So, I want the money spent in row 2020 to only collect the dollar amount in the "Money" column that contains the 2020 date (or 20 for that matter) in the "Date" column.

enter the description of the image here

Thanks in advance!