def change_simulation_length(delphin_dict: dict, simulation_length: int, length_unit: str) -> dict:
    """Change the simulation length of a Delphin file"""

    simulation_properties = delphin_dict['DelphinProject']['Init']['SimulationParameter']['Interval']['IBK:Parameter']
    simulation_properties['#text'] = str(simulation_length)
    simulation_properties['@unit'] = length_unit

    return delphin_dict