The case can be got from

Code:
http://w3.ualg.pt/~lcoelho/Gestao%20financeira/Casos/Caso%20II_GF.pdf