import math


def getUnitCost(demand: int) -> float:
    """
    Implementation of decreasing unit cost:
    Unit cost drops as demand/production increases.
    """
    average_fixed_cost = 2.5
    weight = 0.75
    average_variable_cost = weight*math.log(demand)
    return average_fixed_cost + average_variable_cost