Database

[{_id:"1",estimated_hours:3,actual_hours:0},{_id:"2",estimated_hours:10,actual_hours:9},{_id:"3",estimated_hours:20,actual_hours:30}]

Query

db.collection.find({$where:"(this.estimated_hours - this.actual_hours) > 1"})

Result