How to pull the records for those last 7 days records

Continuing the discussion from How to get last 7 days records based on createdOn date field:

Actually i have another field called “tmp”, so my requirement is to get the last 7 days records which is solved by @Jason_Tran , once again thanks a lot to @Jason_Tran , along with that i have to get the maximum tmp value in those last 7 days records, And currently we are using 4.4 version Any help on this will highly appreciated.

Thanks & Regards,
M. Ramesh.

Please provide sample documents that we can cut-n-paste and expected results.