Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B463E200CDE for ; Tue, 4 Jul 2017 07:31:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B31B7160BEC; Tue, 4 Jul 2017 05:31:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 029B5160C00 for ; Tue, 4 Jul 2017 07:31:04 +0200 (CEST) Received: (qmail 84972 invoked by uid 500); 4 Jul 2017 05:31:03 -0000 Mailing-List: contact dev-help@fineract.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.apache.org Delivered-To: mailing list dev@fineract.apache.org Received: (qmail 84959 invoked by uid 99); 4 Jul 2017 05:31:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2017 05:31:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3EF31CFC0C for ; Tue, 4 Jul 2017 05:31:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MlMcz0j4FTVI for ; Tue, 4 Jul 2017 05:31:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 06E505FBBD for ; Tue, 4 Jul 2017 05:31:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 206AAE0544 for ; Tue, 4 Jul 2017 05:31:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2F7542460D for ; Tue, 4 Jul 2017 05:31:00 +0000 (UTC) Date: Tue, 4 Jul 2017 05:31:00 +0000 (UTC) From: "Santosh Math (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FINERACT-491) Savings annual compound doesn't respect Fiscal month (in April) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Jul 2017 05:31:05 -0000 [ https://issues.apache.org/jira/browse/FINERACT-491?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Santosh Math updated FINERACT-491: ---------------------------------- Labels: p1 (was: ) > Savings annual compound doesn't respect Fiscal month (in April) > --------------------------------------------------------------- > > Key: FINERACT-491 > URL: https://issues.apache.org/jira/browse/FINERACT-491 > Project: Apache Fineract > Issue Type: Bug > Components: Savings > Affects Versions: 1.0.0 > Environment: Windows > Reporter: thynn win > Assignee: Markus Geiss > Priority: Critical > Labels: p1 > Attachments: sample.jpg > > > We are observing that Mifos doesn=E2=80=99t respect the fiscal month in c= alculating interest for savings. > =20 > For instance: we configured the fiscal year to start in April. The saving= product is annual interest with 15% and 365 days. Compounding is set to an= nual with daily balance. > If we make a saving deposit of $1000 on June 23, 2016 and trying to post = on April 1 2017, our expectation is that the interest will be $115.89 (1000= *282*0.0004109589). =20 > There are a total of 282 days with daily interest rate of 0.0004109589 (1= /365*0.15).=20 > =20 > In Mifos, we are getting $118.81 instead. What we learned is that there i= s a compounding happening on Dec 31, 2016 even though it=E2=80=99s not a fi= scal year end.=20 > From June 23 to Dec 31, there are 192 days and it=E2=80=99s getting a new= available balance on Jan 1. It=E2=80=99s compounding from Jan 1, 2017. > https://demo.openmf.org/#/viewsavingaccount/887 (see screenshot) > =20 > =20 > When digging through the code, even though Fiscal month is passed around = in the interest calculation, it wasn=E2=80=99t used when determining compou= nding periods.=20 > =20 > File: PostingPeriod.java > Method: determineInterestPeriodEndDateFrom > case ANNUAL: > periodEndDate =3D periodStartDate.monthOfYear().withMaxim= umValue(); //This is causing to default the compound period to Dec as perio= d start year is 2016. > periodEndDate =3D periodEndDate.dayOfMonth().withMaximumV= alue(); > We are still trying to go through the logic and we=E2=80=99d greatly app= reciate your help. > This will become an issue in Jan 2018 as it's compounding when it's not s= upposed to be. > =20 > Thank you. -- This message was sent by Atlassian JIRA (v6.4.14#64029)