Write a function that computes the balance of a bank account with a given initial balance and interest rate, after a given number of years. Assume interest is compounded yearly

f(t) = initial balance ( 1 + r )^t

where r = yearly interest percent/100
t is time in integer years after deposit

To write a function that computes the balance of a bank account, we can use the formula for compound interest:

A = P * (1 + r)^n

Where:
A is the final balance
P is the initial balance
r is the interest rate
n is the number of years

Here's an example implementation in Python:

```python
def compute_balance(initial_balance, interest_rate, years):
balance = initial_balance * (1 + interest_rate)**years
return balance
```

In this function, the `initial_balance` parameter represents the initial balance of the bank account. The `interest_rate` parameter represents the annual interest rate (in decimal form, e.g., 0.05 for 5%). The `years` parameter represents the number of years the account will accrue interest.

To use this function, you can simply call it with the desired values for the initial balance, interest rate, and number of years. For example:

```python
balance = compute_balance(1000, 0.05, 3)
print(balance) # Output: 1157.625
```

In this example, the initial balance is $1000, the interest rate is 0.05 (or 5%), and after 3 years, the balance will be $1157.625.