add a test to your formula that checks to see if Jan end has been reached, and only summ to end of Jan. Are your dates real dates, or text dates?