Code for increase/decrease by a value using lag and lead function

Have a read on what is a reproducible example. It will make it easier for people to help you.