
    Given the current number of occupied parking spaces in a zone, determine the next perfect square capacity that would accommodate all existing vehicles while maintaining an optimal square layout for the parking area. For example, if a zone currently has 15 occupied spaces, the system should calculate that 16 spaces (4x4) would be the ideal capacity for that zone's next expansion phase.
    

    
import math

def next_Perfect_Square(N):
    """
    Given the current number of occupied parking spaces in a zone, determine the next perfect square capacity that would accommodate all existing vehicles while maintaining an optimal square layout for the parking area. For example, if a zone currently has 15 occupied spaces, the system should calculate that 16 spaces (4x4) would be the ideal capacity for that zone's next expansion phase.
    

    """
import math

def next_Perfect_Square(N):
    """
    Given the current number of occupied parking spaces in a zone, determine the next perfect square capacity that would accommodate all existing vehicles while maintaining an optimal square layout for the parking area. For example, if a zone currently has 15 occupied spaces, the system should calculate that 16 spaces (4x4) would be the ideal capacity for that zone's next expansion phase.
    

    """
    nextN = math.floor(math.sqrt(N)) + 1
    return nextN * nextN