HELP with IF function [Closed]

Registration date
Sunday November 4, 2018
Last seen
November 4, 2018

So I have a problem with my file. I need to use IF function, but I don't understand. The main thing is that I need to calculate the days that the debt has not been paid ( For example: today is 2018.11.04, but you need to pay that amount of money on 2018.11.01. That means, 3 days of debt.) . But if the amount paid up to the specified date, the excel field must display "-".

So, I need the function with IF.
Link of photo -

I'll be waiting for your response.
See more