How to get duration of 2 dates ? i use this block but it show wrong duration

Screenshot 2023-04-16 at 5.10.03 PM

Make sure date 2 is greater than date 1 else it won’t give proper result

use the clock component, no extension needed…

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

if you still get issues, show us a screenshot of your blocks including Do it results
Taifun