Modeling Inflation and Money Demand Using a Fourier-Series Approximation