Battery sleep wake up code

I think I need a dv or dn table is that correct? Does anyone know about them?

Ok I’ll try Somthing else. Thanks for everyone’s help