code for implementing the terran computational calendar