Calculating shadow values for Material Design?

over 5 years ago from , Creator of 2048; Freelance Designer & Developer.

I've been trying to start designing Android Apps with Material Design in Photoshop, but after countless Google searches I still haven't found a source of information about how to calculate values for the paper shadows of my objects based on their Z placement, or not even a list of values I can use in Photoshop. The "sticker" sheets you can download don't really help, since the shadows are already applied and it's absolutely unclear how they achieved them.

Is there something like an algorithm to calculate them?