Getting duration between two dates
All of the change handlers are basically the same.  You could roll them all into one by using smarter jQuery selectors.

Also, the time object is pointless.  You can just use four separate variables.  I've also moved the dateDbToView() calls to declutter the tr.find(…) lines so that the parallelism is more obvious.

$('.data-inicio, .hora-inicio, .data-final, .hora-final').on('change', 'input', function() {
    var tr = $(this).parent().parent();
    var dStart = tr.find('.data-inicio &gt; input').val();
    var hStart = tr.find('.hora-inicio &gt; input').val();
    var dFinish = tr.find('.data-final &gt; input').val();
    var hFinish = tr.find('.hora-final &gt; input').val();

    tr.find('.duracao &gt; input').val(duration(
        dateDbToView(dStart),  hStart,
        dateDbToView(dFinish), hFinish
    ));
});


I suggest renaming getDuration(…) to duration(…), because it is performing a calculation, rather than retrieving information that already exists.  (For the same reason, we say Math.sin(…) rather than Math.getSin(…)).