calculating factor for multiplying