Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded
Evening, Im in need of a macro to calculate the value of a diary. I have a table that stores two dates, the entering date and the leaving date, I need the macro to calculate the difference between these two like, enter date 11/13/2023 and leave date 11/16/2023, equals 4 days (13,14,15,16), and then multiplies it by the value of the diary, example, 4*160, and finally display it in a text box on the form. Is there a way to do it? Thanks.