from typing import Union


def consumption(kilowatts: Union[int, float], hours: int) -> Union[int, float]:
    """Calculate energy consumption, in kilowatt hours (kWh).

    Args:
        kilowatts (Union[int, float]): The power used, in kilowatts (kW).
        hours (int): The number of hours the power is sustained, in hours (h)/

    Returns:
        Union[int, float]: _description_
    """
    return kilowatts * hours