Create calculate datetime diff

How to get time difference in minutes in PHP