[unfinished] Draft for implimentation of variable period

Hey Ping, I don’t have access to the doc, so I sent a request.