Logic to set calendar values from prev entry