more skeleton of CalcPlan()