Does anyone know how amazon sales commission is calculated?

Just started out and got my first few sales but the commission seems lower than I expected. How does the percentage actually get worked out?