Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7686735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:32:49+00:00 2026-05-31T19:32:49+00:00

I need to compute monthly payment (M) for an installment loan given the loan

  • 0

I need to compute monthly payment (M) for an installment loan given the loan amount (P), period (in years), and the annual percentage rate. M = (P * i * (1 + i)n) / ((1 + i)n – 1) where i = annual percentage rate / 1200 and n = period * 12.

I need to do this using a web service on visual studio. I can’t seem to use the Math.Pow in a web service. this is my Code in the method:

This is my error message: Error 1 ‘ProjectFive.payment.Math(double, double, double, double)’ is a ‘method’, which is not valid in the given context c:\users\parodeghero\documents\visual studio 2010\Projects\ProjectFive\ProjectFive\payment.asmx.cs 27 38 ProjectFive

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace ProjectFive
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]

public class payment : System.Web.Services.WebService
{
    [System.Web.Services.WebMethod()]
    public double Math(double loan, double rate, double period, double payment)
    {

        rate = rate / 100;
        period = period * 12;

      payment = loan*(rate/1200)*Math.Pow((1+(rate/1200)), period)/ Math.Pow((1 + (rate/1200)), period) - 1;
      return payment;         
    }
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:32:50+00:00Added an answer on May 31, 2026 at 7:32 pm

    Rename your method, you can’t call it Math !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't find any PHP script to compute Krippendorff's Alpha . I need this
In my application I need to compute a hash of a given .NET assembly
Given a 2D numpy array, I need to compute the dot product of every
I need to compute a list of table names in a given database (MDB
I need to compute this equation in C/C++: x=(a*b-1)/c; with a,b,c,x of type __int64
I need to compute MD5 hash of a String and googling I found this
I need to compute hashes of multiple blocks of data independently. Something like this:
I need to compute the means of of the first elements in each list,
I need to compute ICMPv6 checksum. I have found correct manual in RFC 2460
To solve some problem I need to compute a variant of the pascal's triangle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.