A small algorith of a FB-style calendar