by_plan function

Shorten District by Plan vector