A bash script to calculate simple interest. This project is part of a micro-finance startup's transition to Git. Open source and licensed under Apache 2.0.
#!/bin/bash
echo "Welcome to the simple Interest Calculator"
read -p "Enter the principal amount: " principal read -p "Enter the rate of interest (in %): " rate read -p "Enter the time (in years): " time
interest=$(echo "scale=2; ($principal * $rate * $time) / 100" | bc)
echo "The Simple Interest is: $interest"