Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

.[ Home ].[ Up ]


 

Calculations

 

[Mathematical Operators]

 

Area of a circle

Area of a rectangle

Circumference of a circle

Discount

Interest

Percentage that VB will understand

Polygon's perimeter

Time

Volume

 


 

Area of a circle (oppervlak)                                        

 

 

area = Pi multiplied by radius to the 2nd power

 

 area = 3.141593 * radius ^ 2 

Back to Top

 

 


 

 

Circumference of a circle (omtrek)            

 

circumference = diameter multiplied by Pi

 

 circumference = diameter * 3.141593 

Back to Top

 

 


 

Area of a rectangle                    

 

area = length multiplied by width

 

 area = length * width 

Back to Top

 

 


 

 

Polygon's perimeter                    

 

perimeter = length multiplied by the number of sides, e.g. 4 or 6

 

 perimeter = length * number of sides 

Back to Top

 

 


 

 

Volume

 

 volume = height * width * depth 

Back to Top

 

 


 

 

Time

 

To convert hours, minutes and seconds into weeks, days and hours use the Modulus Operator (Mod).

 

Example:  If 40 hours = 1 week, 8 hours = 1 day, and less than 8 hours = hours; calculate how many weeks, days and hours it results in given the following data - an employee worked 100 hours.

 

weeks = 194 hours \ 40             gives you 0 weeks

days = (194 hours Mod 40) \ 8      gives you 4 days

hours = (194 hours Mod 40) Mod 8  gives you 4 hours

Back to Top

 

 


 

 

Interest

 

Basic interest calculation

 

Example:  Calculate the amount due on a loan of R25 000 @ 7.5% interest

 

(100 + 7.5)/100 - 1 = 0.075 (percentage conversion to decimal)

R25 000 * (1 + 0.075) = R26 875 (amount due)

 

Another method of doing this:

 

((R25 000 * 0.075) + R25 000) = R26 875

 

More advanced interest calculation

 

To calculate interest with certain parameters, use the Pmt function

Back to Top

 

 


 

 

Discount

 

Basic discount calculation

 

Example:  Calculate 12% discount on R743.50

 

(100 + 12)/100 - 1 = 0.12 (percentage converted to decimal)

R743.50 * 0.12 = R89.22 (discount amount)

R743.50 - R89.22 = R654.28 (new total)

Back to Top

 

 


 

 

Percentage

 

Basic percentage conversion

 

Example:  To convert 5% to a decimal value

 

(100 + 5)/100 - 1 = 0.05

Back to Top

 

 


 

 


All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us