Is there a function in excel where i could get the day in year( out of 365) from the month in the year and day in month?

so if today was month=9 and day =30 then output day in year =273

or is there a way I can have a cell which automatically updates the day in year value.

The month and day in month values are calculated separately using the =NOW()


Many Thanks for any help

Matt