
    Design an algorithm to calculate the total usable space of a community event venue that has a regular polygonal layout, where 's' represents the number of distinct social zones arranged around the perimeter, and 'l' represents the length of each zone's outer edge in meters. The calculated area will help determine the venue's maximum capacity for social gatherings and optimal distribution of different activity stations.
    

    
from math import tan, pi

def area_polygon(s, l):
    """
    Design an algorithm to calculate the total usable space of a community event venue that has a regular polygonal layout, where 's' represents the number of distinct social zones arranged around the perimeter, and 'l' represents the length of each zone's outer edge in meters. The calculated area will help determine the venue's maximum capacity for social gatherings and optimal distribution of different activity stations.
    

    """
from math import tan, pi

def area_polygon(s, l):
    """
    Design an algorithm to calculate the total usable space of a community event venue that has a regular polygonal layout, where 's' represents the number of distinct social zones arranged around the perimeter, and 'l' represents the length of each zone's outer edge in meters. The calculated area will help determine the venue's maximum capacity for social gatherings and optimal distribution of different activity stations.
    

    """
    area = s * l ** 2 / (4 * tan(pi / s))
    return area