It's just calculating based on your MMR missing , and the average MMR u get per match.
If you have like 2100 MMR and you need 2200, and you have 60 LP already at Plat1, you need 5 matches(for example) so it gives you 40/5=8 LP
but the MMR gain isn't standard so that changes all the time