inactive Users report

inactive Users report

looking to get a reports of inactive users, but some of the users only log into the computer to start then uses office 365 for email. So they show up in the inactive users reports for AD users but they are using their AD account through directory sync to office 365. 
Trying to look at a solution to report on users if they are inactive in both systems, then create an automation around these results.