def daily_profit(daily_mined: float, xmr_price: float, kwh: float, kwh_cost: float, pool_fee: float, precision: int) -> float:
    """
    Computes how much money you gain after paying the daily mining expense. Formula:
    (daily_income - daily_electricity_cost) * (100% - pool_fee)

    :param daily_mined: Float. Amount of XMR you can mine per day.
    :param xmr_price: Float. Current market price of XMR coin.
    :param kwh: Float. Electricity usage in kilowatts per hour.
    :param kwh_cost: Float. Electricity cost you have to pay for kwh.
    :param pool_fee: Float. Mining pool fee.
    :param precision: Int. Precision of computing.
    :return: Float. Money you gain after paying the daily mining expense.
    """
    return round(((daily_mined * xmr_price) - (kwh * 24 * kwh_cost)) * (1 - pool_fee), precision)