I found a nifty tool online that can help anyone, especially those who have multiple trips abroad, calculate how much time they spent in and out of the US. It's very user-friendly, just enter the dates of your departure and arrival and it'll tell you exactly how many days you've been in or out.
Date Duration Calculator - Click Here
Date Duration Calculator - Click Here