# Bug OP-14859 - Progress calculation modal makes Remaining work higher than Work and throws a validation error

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14859

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.0.0 |
| Observed in versions |  |
| Sprint | 14.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Make sure the progress calculation is set to Status based (/admin/settings/work\_packages)
2.  Login as a user with permissions to edit work and remaining work
3.  Go to any project \> work packages
4.  Click on 'Work' and input a value with a decimal

### What is the buggy behavior?

When work has 3 decimals with the last one being 5, 6, 7, 8, or 9, and remaining work is unset, then remaining work takes its value from work, and as it is rounded to 2 decimals, it is rounded up and will be greater than work, and this will lead to an error

### What is the expected behavior?

1.  There should not be any error

### Screenshots and other files

### Environment information

**OpenProject version**

Core build

[298ef05d0da4875891256428b8c9f315f884452e](https://github.com/opf/openproject/commits/298ef05d0da4875891256428b8c9f315f884452e) 

Product version

[7a689c6a3d9c44be1ab7ef8b3bcdbd873824ab38](https://github.com/opf/saas-openproject/commits/7a689c6a3d9c44be1ab7ef8b3bcdbd873824ab38)

Core version

OpenProject 14.0.0

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
