The time from when you opened the account and when the bank added the interest was 7 months.
To know how much you earn in this 7 months we have to know how much would you have earned in the whole year.
In a year wou would have earn of interest

This means that each month you would have earned

Therefore the amount you've earned in 7 months is $26.39.