calculate plan from examples