Retrieve information from the database for calculation

I’m trying to retrieve information from the different submissions in the database to be used for the current submission for calculation purposes but I don’t know how to go about it.

I give an example, during the previous submission, we entered the data for the month of January, February, March and April.
suppose that we are in the month of May, when filling out the month of May, I would like to calculate the sum of the previous values and display it before submitting.

Thank you for your future help

Welcome to the community, @samson_mww! You should be able to link two projects dynamically as outlined in this support article: