import time


def calculate_uptime(boot_time):
    """Calculates the uptime for the system based on its boot time.

    @param boot_time: The time when the system was started in seconds past epoch.
    @type boot_time: float

    @return: The number of seconds since the system was last started.
    @rtype: float
    """
    return time.time() - boot_time