How to set up automatic counting of days between dates?

How to set up automatic counting of days between dates?

Hi. I would like to set up in ZOHO to automatically count between the date a job is opened and the date a job is closed. Right now the formula is not counting correctly.