Year-to-Date Change Formula?

Is there a way to express or define the year-to-date change in a simulation or screen?

Approximately:
Close(0)/Close((Month - 1) * 21 + MonthDay * (5 / 7)) // (5 / 7) = 5 trading days per week of seven days.

Thanks for the code. I came up with something similar but was wondering if there was an even more precise way to do it. I guess not as of now.

If you really need to do it then something like this should work:
(((Month>1) * 31) + ((Month>2) * 28) etc… + MonthDay) / (5/7).