How to get the amount due in simple interest and how to get the interest if there's no time​