mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
28 lines
556 B
C++
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
|