MySQL count time between each in/out and show total
What's the question?

If you need to add up the last column, there two ways:

SELECT ... SUM(minutes) ...
    FROM (
          your query
         ) x
    GROUP BY ...


or...

GROUP BY ... WITH ROLLUP


Add WITH ROLLUP to your query and see if that is enough.