gradido/src/cpp/lib/DecayRate.h
2021-03-17 21:39:09 +01:00

28 lines
556 B
C++

#ifndef __GRADIDO_LOGIN_SERVER_LIB_INTEREST_RATE_H
#define __GRADIDO_LOGIN_SERVER_LIB_INTEREST_RATE_H
/*!
* @author: Dario Rekowski
*
* @date: 2020-11-24
*
* @brief: to calculate interest rate for gradido and maybe also decay
*/
#include "Poco/Types.h"
#include "Profiler.h"
class DecayRate
{
public:
DecayRate();
~DecayRate();
void calculateDecayRate(int daysPerYear = 356, Profiler* time = nullptr);
inline double getDecayRate() { return mDecayRate; }
protected:
double mDecayRate;
};
#endif //__GRADIDO_LOGIN_SERVER_LIB_INTEREST_RATE_H