Calculates the value of a principle, P, invested at a rate, APR, for a given number of days or years.