Fixed history scope

Parsed date from plan and defined the correct range to pull history
from.