The formula on the board should really read $dur.pal=pal\cdot dupal$, where $dur.A(u_1,\ldots,u_r)=(u_1+\cdots+u_r)A(u_1,\ldots,u_r)$.