Can someone supply me with a smart contract to lock for periods of time?

I want to implement a lock by percentages example 25% this month unlocked and the other 75% in two periods of time.