There are my MacBook battery and lock settings and battery graph.
Last used mac was yesterday 11 pm before sleep at that it around 40% of charge and when I woke up in the morning situation is laptop has shutdown due to no charge left.
This is my lock screen settings.
PS. I haven't closed my laptop. (this is how I used my previous laptop)
Now I need to remember to close time each time when I step out and also before going to sleep.