I believe that December 1, 2011 is the 335th day. 31+28+31+30+31+30+31+31+30+31+30+1 = 335, right? Unless you're only counting data through the completion of the previous day, in which case yeah, 334.
I'd have thought this would work:
But it returns 336. Checking the documentation, this function wants to pretend that every year is a leap year, I guess so that December 1 has a consistent number whether or not it is a leap year. So perhaps use this:
today() - yearstart(today()) + 1
It returns 335. Skip adding the 1 if you want 334. Mind you, I'm not sure which is really better for annualization. After all, December 31, 2012 is day 366, and do you really want 365/366 as your factor? I'd think you'd want 1 at that point. In any case, either December 31, 2012 has a factor less than 1 instead of 1, or March 1, 2011 has a factor of 365/61 instead of 365/60. Decide which "problem" you prefer, I guess.