RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1250909 - Wrong result in financial mode or missing some parameters for computing
Summary: Wrong result in financial mode or missing some parameters for computing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-calculator
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexander Larsson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-06 09:37 UTC by Lukas Vacek
Modified: 2018-07-12 09:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-12 09:56:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Vacek 2015-08-06 09:37:38 UTC
Description of problem:
Not sure if bug but results with Ctrm, Sln and Syd are different from testcases.
With Ctrm button I guess there is missing compounding period(daily/quarterly/yearly) parameter. If it is not bug, please describe how it is computed and what are expected results

Version-Release number of selected component (if applicable):
gnome-calculator-3.14.1-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Start gnome-calculator and Choose Financial mode
2.press [Ctrm] button, 0.0075 for Periodic Interest Rate, 18000 for Future value,8000 for Present value
3.press [Sln] , 8000 for Cost, 900 for Salvage,4 for Life
4. press [Syd] , 8000 for Cost, Enter 900 for Salvage,Enter 6 for Life,Enter 4 for Period

Actual results:
2.108,528988997
3.1775
4.2366,666666667

Expected results:
2. 92.765766065
3. 1183.333333333
4. 1014.29

Additional info:

Comment 1 Matěj Cepl 2015-08-06 12:11:41 UTC
(In reply to Lukas Vacek from comment #0)
> With Ctrm button I guess there is missing compounding period(daily/quarterly/yearly) parameter.

No, it isn't. The calculation is done for periods, no matter which ones, only all input variables must be transformed to use the same unit of time. E.g., in this case I have calculated monthly interest (9% p.a. / 12 = 0.09 / 12 = 0.0075) and so the result should be in month periods.

Comment 3 Petr Schindler 2018-07-12 09:56:53 UTC
I make my calculations (ehm, used online calculators :) ) and found out that in cases of ctrm and sln the calculator produce right numbers 108,528988997 and 1775 respectively. So the testcases are wrong.

In case of Syd the testcase is right and the answer really is 1014.29. And this is already solved (calculator now returns the right number).

So I'm closing this bug as current release as it works right in version gnome-calculator-3.28.1-1.el7.x86_64


Note You need to log in before you can comment on or make changes to this bug.