TODO, implement days count by script