Calculated fields

=IF( AND([Date 1],[Date 2]) , DATEDIF([Date 1],[Date 2],"D") , "" )

=IF( AND([algus],[lopuaeg]) , DATEDIF([],[lopuaeg],"D") , "" )

=TEXT([algus]+[lopuaeg],"h:mm:ss")