You must apply for the National Type D permit if you plan to remain in Poland for more than 90 days in a single visit or multiple visits within a half-year span.