15,992,684 members
See more:
```I run my small studios webpage
A costumer needs to rent a room
i need an easy way to calculate the total price
depending the check in, check out dates and the type of the room

two room the one cheap the other one expensive
the price changes every three months

for example

Room 1 price 10 euro per day (jan,feb,mar)
Room 1 price 20 euro per day (apr,May,Jun,)
Room 1 price 30 euro per day (July,Aug,Sept)
Room 1 price 15 euro per day (oct,nov,dec)

Room 1 price 20 euro per day (jan,feb,mar)
Room 1 price 30 euro per day (apr,May,Jun)
Room 1 price 40 euro per day (July,Aug,Sept)
Room 1 price 25 euro per day (oct,nov,dec)

```

What I have tried:

```<select name="room" id="room" >
<option>Select Room</option>
<option>Room 1</option>
<option>Room 2</option>
</select>

<input type="text" name="checkin" >

<input type="text"  name="checkout" >

<p>Total price in euros is:</p>

<input type="number" name="Totalamount">
```
Posted
Updated 16-Apr-22 22:22pm
Richard MacCutchan 17-Apr-22 4:20am
What is the problem?

## Solution 1

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]