add date check to compare consumption or production