def calc_intensity(locations):
    """ Calculate intensity per location"""
    max_duration = float(max(locations.values()))
    result = {}
    for key, value in locations.items():
        result[key] = value/max_duration
    return result