"digits" is the included variables that displaying a number only, "pDisplay" is the defined variables of your PANEL* have. you change it any name you want. i think that "number_of_days" in your code is not defined, maybe it must a function number_of_days(). try it and i think it will run.