# Bug OP-11008 - Remaining hours sum not well formed

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.2.4 |
| Observed in versions | 12.2.0 |
| Sprint | 12.2.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.2.x |
| 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 |  |
| 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

In a work packages view, when the &quot; Display Sums — Display sums of all summable attributes in a row below the table results.&quot; option is enabled, the sum at the bottom of the Remaining hours column is displayed in a uncommon form.

For example in your view of the WP for OpenProject 12.3.0 (adding column Remaining hours, and enabling the &quot; Display Sums — Display sums of all summable attributes in a row below the table results.&quot; option):

[https://community.openproject.org/projects/14/work\_packages?query\_id=3425&amp;query\_props=%7B%22c%22%3A%5B%22type%22%2C%22id%22%2C%22subject%22%2C%22status%22%2C%22assignee%22%2C%22priority%22%2C%22project%22%2C%22customField1%22%2C%22customField114%22%2C%22remainingTime%22%5D%2C%22hi%22%3Atrue%2C%22g%22%3A%22%22%2C%22dr%22%3A%22list%22%2C%22is%22%3Atrue%2C%22s%22%3Atrue%2C%22tv%22%3Afalse%2C%22hl%22%3A%22inline%22%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22t%22%3A%22status%3Aasc%2Cid%3Adesc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22version%22%2C%22o%22%3A%22%3D%22%2C%22v%22%3A%5B%221514%22%5D%7D%2C%7B%22n%22%3A%22subprojectId%22%2C%22o%22%3A%22\*%22%2C%22v%22%3A%5B%5D%7D%2C%7B%22n%22%3A%22type%22%2C%22o%22%3A%22!%22%2C%22v%22%3A%5B%2210%22%2C%2214%22%2C%2269%22%5D%7D%2C%7B%22n%22%3A%22status%22%2C%22o%22%3A%22!%22%2C%22v%22%3A%5B%226%22%5D%7D%5D%2C%22pp%22%3A100%2C%22pa%22%3A1%7D](https://community.openproject.org/projects/14/work_packages?query_id=3425&query_props=%7B%22c%22%3A%5B%22type%22%2C%22id%22%2C%22subject%22%2C%22status%22%2C%22assignee%22%2C%22priority%22%2C%22project%22%2C%22customField1%22%2C%22customField114%22%2C%22remainingTime%22%5D%2C%22hi%22%3Atrue%2C%22g%22%3A%22%22%2C%22dr%22%3A%22list%22%2C%22is%22%3Atrue%2C%22s%22%3Atrue%2C%22tv%22%3Afalse%2C%22hl%22%3A%22inline%22%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22t%22%3A%22status%3Aasc%2Cid%3Adesc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22version%22%2C%22o%22%3A%22%3D%22%2C%22v%22%3A%5B%221514%22%5D%7D%2C%7B%22n%22%3A%22subprojectId%22%2C%22o%22%3A%22*%22%2C%22v%22%3A%5B%5D%7D%2C%7B%22n%22%3A%22type%22%2C%22o%22%3A%22!%22%2C%22v%22%3A%5B%2210%22%2C%2214%22%2C%2269%22%5D%7D%2C%7B%22n%22%3A%22status%22%2C%22o%22%3A%22!%22%2C%22v%22%3A%5B%226%22%5D%7D%5D%2C%22pp%22%3A100%2C%22pa%22%3A1%7D)

You can see at the bottom of the page, in the column Remaining hours, it shows **P13DT8H** instead of 320 h, like before release 12.2.0

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37901/content">

### Environment information

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [x] Packaged installation
    *   Ubuntu 20.04 LTS
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [x] Other (please specify) → [https://community.openproject.org/](https://community.openproject.org/) has the same behaviour

**OpenProject version**

Open project 12.2.0 and nexts

**Browser**

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