I am currently developing a Spring Boot application using Postgresql and Hibernate JPA. I want to calculate each book\'s popularity using the formula: