## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

# Cant figure out minute delta question!

I'm calculating the total mins since midnight... and then subtracting the first occurring time from the second occurring time- which I thought would leave me with the delta !

Am I doing something stoopid ?

minutes.py
```import datetime

def minutes(dt1, dt2):

dt1_tot = dt1.minute + (dt1.hour*60)
dt2_tot = dt2.minute + (dt1.hour*60)

return dt2_tot - dt1_tot
```