Android Studio version of MFDPayCalculator