Calculates the interest earned on a fixed deposit based on the principal amount, interest rate, and tenure.