To answer the first question you need a combination of the earn factor based on particular booking class (A to Z) and the distance travelled.
For the former, it sounds like you’ve found the partner earn table on the Singapore Airlines website, so I won’t link it here.
To work out the travel distance I just plug the route into Great Circle Mapper - it I usually accurate to within a few miles of the distance the airline uses. Link here:
Great Circle Mapper