def compare_balance_with_zero(balance):
    """
    :param balance: a double with the value of the balance in after a year.
    :return: 0 if the balance is equal to zero or nearly equal, 1 if the balance is greater than zero and -1 if
    the balance is lower than zero.
    """
    if 0.05 >= balance >= -0.05:
        return 0
    elif balance > 0.05:
        return 1
    else:
        return -1