                <f:convertNumber pattern="#,##0.00" />
                                </h:outputLabel>
                            </td>
                        </tr>
                    </h:panelGroup>
                    <script>
                        function calculateTotal() {

                            const total = Array.from(document.querySelectorAll('.itemValue')).map(td => parseFloat(td.innerText) || 0).reduce((sum, value) => sum + value, 0);
                            document.querySelector(