clear services_hash, and add period calculate